package com.swf.seed.spring.property;

import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.springframework.util.PropertyPlaceholderHelper;

public class TestPlaceHolder {
	public static void main(String[] args) {
		PropertyPlaceholderHelper helper = new PropertyPlaceholderHelper("{", "}");
		String s = "{a}{b}{c1}";
		Pattern pattern = Pattern.compile("(?<=\\{)\\w+?(?=\\})");
		Matcher matcher = pattern.matcher(s);
		while (matcher.find()){
			System.out.println(matcher.group());
		}

	/*	Properties p = new Properties();
		p.setProperty("a", ");
		p.setProperty("b", ");
		System.out.println(helper.replacePlaceholders(s, p));*/
	}
}
